﻿@using CloudStorageLight.Web.Models
@using System.Security.Principal
@{
    bool disableLogin = CloudStorageLight.Core.SystemSettings.Instance.DisableLogin;
    string url = disableLogin ? "#" : Url.Content("~/Account/Login");
    if (HttpContext.Current.User != null && HttpContext.Current.User.Identity.IsAuthenticated)
    {
        if (CloudStorageLight.Core.SystemSettings.Instance.MultiDomain)
        {
            var account = CloudStorageLight.Core.BlobService.GetCurrentCloudAccount();
            if (account != null)
            {
                url = Url.RouteUrl("files", new { id = "/", domain = account.AccountName });
            }
        }
        else
        {
            url = Url.RouteUrl("files", new { id = "/" });
        }

    }
}
<li><a href="@(url)"><div style="position:relative;">
    <i class="icon-cloudy-3 fg-white command-link" style="font-size:1.5em;"></i>
    <span style="font-size:0.4em;position:absolute;left:-20px;bottom:-10px;white-space:nowrap;" class="fg-white">Cloud Storage Light</span>
</div></a></li>


